-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2022 11 add sia405 to kek export #84
Conversation
if export_model_name = SIA405_ABWASSER_2015_LV95 then export as export_model_name (SIA405_ABWASSER_2015_LV95), else export as model_name (KEK_2019_LV95)
- Added ABWASSER_ILI_EXPORT_MODEL and Added ABWASSER_ILI_EXPORT_MODEL_NAME to config
Error: line 16: SIA405_ABWASSER_2015_LV95.SIA405_Abwasser.Spezialbauwerk: tid ch080qwzAW001080: unknown property <Art>
<SIA405_ABWASSER_2015_LV95.SIA405_Abwasser.Abwasserknoten TID="ch080qwzAK001099">
|
- renamed old version with errors to case_c_import_all_with_errors
- additional parameter export_model_name needed in function calls utils.ili2db.export_xtf_data ()
ERROR: test_case_b_export_complete_qgep_to_xtf (qgepqwat2ili.tests.test_qgep.TestQGEPUseCases) Traceback (most recent call last): |
as it seems to be expected to fail
@olivierdalang Is their a way to look at the created "export.xtf" of this testexport to find out how much data was exported? |
https://stackoverflow.com/questions/23040166/python-3-3-deprecationwarning-when-using-nose-tools-assert-equals The warning is meant to tell you that instead of TestCase.assertEquals() you need to use TestCase.assertEqual() as the alias has been deprecated.
@olivierdalang I found the solution to the failing test with self.assertEqual: Please review and if it would be better to make an entry in the config to not have model related information in the testdata code please make a suggestion how to adapt and how to import config in test_qgep.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One main question : export_xtf_data's new export_model_name argument, that involves many changes in the PR, seems completely unused ?
Otherwise mostly code style thing (removing useless comments / debug statements).
for line in Lines: | ||
count += 1 | ||
logger.warning("Line{}: {}".format(count, line.strip())) | ||
|
||
root = ET.parse(path) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
@sjib Ok made my changes, from the tests it seems to work. Can you double check ? |
I only get one file (VSA_KEK) and not two files (VSA_KEK and SIA405 Abwasser) as expected now |
@sjib I just manually tested, and ran into an error in which you would have ran as well, so I'm not sure you tested the correct version ? Can you try again with the latest changes, which exports both files successfully here (just tested). Just make sure to pull the latest changes of the submodule, and are on master on the plugin, then also make sure to restart QGIS (under certain circumstances, the plugin reloader may not reload the qgepqwat2ili submodule propertly) |
Now i get also 2 files as expected. |
Ok so it behaves as expected ? Ok for merge ? |
@olivierdalang Yes, ok for merge! Thanks for all support. |
No description provided.